﻿using System;
using UFSoft.UBF.Util.Log;

namespace dz.inner.jky.api
{
    internal class DzException : Exception
    {
        public DzException(string msg) : base(msg)
        {
            ILogger logger = LoggerManager.GetLogger("dz.inner.jky.api");
            logger.Error(msg);
        }

        public DzException(Exception e)
        {
            ILogger logger = LoggerManager.GetLogger("dz.inner.jky.api");
            logger.Error(e);
        }

        public DzException(string msg, Exception e) : base(msg, e)
        {
            ILogger logger = LoggerManager.GetLogger("dz.inner.jky.api");
            logger.Error(e);
            logger.Fatal(msg);
        }
    }
    
}
